[feature] Reduced code duplication.