MAINT: Refactor into submodules.