Reduced code duplication.