Moving some functions out of the header into .cpp files. These were only in the header because this class used to be a template.