Convert attribute filter to plugin