Rewording and extract filter code to method.