Refactor size and position trait for control