Using Classes Inside Functions: Best Practices - Effect Community