Standardizes return annotations in filters.