[Trivial] usage of factory

Change-Id: I51c150565dff810e687fd9752f2465c1e3b7ae63
Signed-off-by: Thibault Le Ouay <thibaultleouay@gmail.com>