Start moving complex template logic to specific class