[Olena-patches] r3873: Check guard and separate attribute filters into their own file