Standardizing common code