Move templated function definitions out of class body.