Replace localparams with enum