Removing CoreData reference