Modularity for functions in view - C#