Right, is slightly different but as you comment similar enough to refactor in a utility method