Refactor inside check_access.