Changed Library to operator on entity classes rather than repositories.