I've extracted this into a separate method instead.