Split up main import into separate files

Ready to review / merge @incuna/frontend