Replace slot class functions with templates.