Floatbox refactoring

@njam please review
Closes https://github.com/cargomedia/CM/pull/926