Move code from shared to the root