Moving logic to schema - Effect Community