Revert "Cpp templates: Move Factory template to cpp_server directory"

This reverts commit 08eac5137e8d5c59118ac3fd87000e8ba6cbe07c.

Change-Id: I8cdc3b5ebe144e64c33657dac7fdc0398eab126a