CreateBin to BinShape function. Separating operations.