I've just spotted that you're using `None` as synonymous with 'both'. I'm not really delighted about that behaviour. It'd be better to fake out an enumerated type and use that.