File refactoring guide?

it is a bit surprising that each file needs its own namespace. Where I’m coming from file names, directory names, namespace names, and system names are all independent from each other. A “system” is a set of files in and other systems, which are considered as a single block for loading, compiling, etc.

Is moving function between files (refactoring) therefore really a lot of work?