Moves main file includes into a method