refactor the pfwservicefactory 
Signed-off-by:jasstion <zhaoyufei@edanzgroup.com>