Refactor configuration: size definitions

Resolve #51