Moves a bunch of code to BLL