Small bit of refactoring.