Build filter methods dynamically.