move bot related controller code to package