Fixed sonar issues in Factory class

Signed-off-by: Michal Banka <michal.banka@nokia.com>
Change-Id: Idde6d2d79d13d25427a8d3e516945e2fb3a7bafa
Issue-ID: AAF-997
1 file changed