I think that it's a tool, the deferred prosecution agreement, and considerations that the director of public prosecutions or prosecutors can take into account are delineated and articulated within the Criminal Code.
On February 27th, 2019. See this statement in context.