Cleaning up arbitrary MySQL option code