Could stand to be pushed out into a separate method, might make some mocking/testing a little easier.