Migrated User/FindByName usages to API. Removed unused code.