Could we extract this into a method?