Pass `app` parameter in shorter constructor snippet