Consolidating Common Functions for Efficiency