Move definition of template instatiation to cpp