It looks like we are using the `search` method on `Segment` to pick out the section id, but this method is intended to be used to return segments, so I propose we rewrite this stuff without using `search`. It is confusing that the `filter` callback doesn't seem to return anything truthy and the result of `search` isn't being used for anything.