Better way to filter properties.