I would put this stuff in a `initFilepicker` function or something.