Refactored some functions
Refactored some functions

Signed-off-by: Vishal Rana <54e88dfdee11a18f791b7188a9ffbcd1fdba30bd@labstack.com>

labstack/echo,gavv/echo,coderhaoxin/echo,o1egl/echo,dre1080/echo,webus/echo,currantlabs/echo,tylerb/echo,CaptainCodeman/echo,olliephillips/echo,husobee/echo,gavv/echo,coderhaoxin/echo,coderhaoxin/echo,buztard/echo,CaptainCodeman/echo,webx-top/echo,labstack/echo,o1egl/echo,qtzheng/echo,eliquious/echo,mtojek/echo,hvnsweeting/echo,olliephillips/echo,mtojek/echo,webx-top/echo,caiqfrog/echo,sulnedinfind/echo