remove unused type constraint

it's also using the old form of enum, which is being deprecated