Moved out the definition of another function from the header file, but keep this template function here in order to avoid explicitly declaring the template argument.