Consolidating code