def METHOD_NAME(self, org_name, org_config):
    if org_config.scratch and org_config.date_created and org_config.expired:
        click.echo(click.style("The scratch org is expired", fg="yellow"))
        self.keychain.create_scratch_org(
            org_name,
            org_config.config_name,
            days=org_config.days,
            set_password=org_config.set_password,
        )
        click.echo(
            click.style(
                "Org config was refreshed, attempting to recreate scratch org",
                fg="yellow",
            )
        )
        org_config = self.keychain.get_org(org_name)
        org_config.create_org()
    return org_config