Moved real-time filter creation to a helper class