Move some profile parameters to global class to reduce code duplication