refactoring

Signed-off-by: Gowrishankar Rajaiyan <gsr@redhat.com>