moving feature toggle definition to extension