Fix build: Remove unused namespaces

There are some unused namesapces and functions within them which
cause the build error. Moreover, since we are building with -Werror
the compiler dies with error and terminating the build subsequently.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>