Move some non performance marionette stuff to a helper.