See https://jira.ez.no/browse/EZP-22279 & the matching PR. It should explain everything.