Remove unused active pattern