Extracts Auth processing logic