[BOX] Refactor in boxes libraries