Broke out the namespacing and file handling functions into a dedicated module strictly to keep myself sane