Wondering if this can be centralized so the env doesn't need to be created each time and so we can define config like autoescaping centrally.