Moved UserNameRevisionEntity to api package for testing