Move a function definition to outside of the class