Mechanisms for class filtering

Change-Id: I0cd0a88790a1a1eb4d9ffb201c5810d8f8198cfb
Reviewed-on: https://pirx.atteo.com/gerrit/538
Tested-by: Mr. Jenkins
Reviewed-by: Sławek Piotrowski <sentinel@atteo.com>