Design Pattern

The approach ensures separation of concern: each sub-function is responsible for one part of the structure, and this final function composes them.