Refactor response.accepts to use patterns