PIM-1845 : refactor configure flexible grid listener to make it
extensible