DRY code cleanup.