Move code into seperate repo (application). Fixup resulting build errors.