Replaced mutually exclusive OptionMap legacy code with Linq.