Remove categories from function template