Split package server into multiple smaller source files