Move backend related functions from rt module to new rt_backend module.