Refactor after_sign_in_path_for method