Minor refactoring

Signed-off-by: Rocky Jaiswal <rocky.jaiswal@gmail.com>