Modify to fit Morepath >= 0.4.