Refactor ordinal/nominal setup code for ease of use