Move lock_in_subs method to Substituters module