Move functions on paths in their own module