Refactor setSizeInBits