[FMX] Refactoring of the scaffolding && clear code