Move extensions out of rules