Removing the $app use statement altogether on suggestion of @paschdan