Moving morphology functions to their own file.