Define `$schemaName` and `$tableSoloName` upfront and avoid the `else` clause