Do not call getDataByFilter multiple times.

This was introduced erroneously in manual merge.