2291249 Modal display

We are using this only with entity browser which means all code below this point is always unused. Let's remove it.