[reports] Move filter logic into form.