Move template definition out of class decl