Moved code from vlan.pm to filter.pm