Remove additional instances of the prepare() function which has now been renamed beforeRender()