Making Repository#active! method work more effectively