Refactor mod system to save disk space