ContainerBuilder: fix format statement of methods in factories [Fixes #977]
Merge pull request #979 from HosipLan/bugfix/format-statement

ContainerBuilder: fix format statement of methods in factories