Refactor y fix warnings request_spec