Refactory registration bc.