Reaping the benefits of the DRY code