Removed unused and extraneous code from Repository controller