Move code to its own source directory