[TIDOC-1807] Added filtering logic; removed unused buildPlatformsmap function.