Reorganized the copilot class