As we discussed on gchat, better to use your `convert_membership_type` function. Right now you have two regular expressions - one to validate and one to parse the data. While right now they may be equivalent, it's better to reduce this to one so that they don't become out-of-sync in the future. An easy way to do this would be to alter the function so that it returns `-1` for unrecognized string, and check that the output is positive during validation.