Refactor sheet creation.