Split some code into multiple files