Initialising plugin in a more logical place to stop out of order exceptions when registering app.get