Removing unnecessary code from other project