[Subhas/Faris] Added mapper factory method.