Refactor bbb.module for drupal 8