Reorganization of the q-learning modules.