fixup! Commands: Infer migrations' namespace (and directory)

Extract namespace logic to methods