Refactored filtered-select such that it's easier to override.