Extracting auth methods into a new class