Moved service functions to utils

Signed-off-by: Oleg Komarov <o.komarov11@imperial.ac.uk>
Admitted @ condition according to updated selection of trades

Signed-off-by: Oleg Komarov <o.komarov11@imperial.ac.uk>