Minor refactoring of Jelly files

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Code refactoring

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>