Configure deprecation for stm