remove factory macro method from service