Split deprecated class, functions and enums to related module and adjust iOS/Mac test case and templates