Move message formatting to StatementSourceException