Refactored copy method in assignment controller