Having another lang-specfic logic would make the code harder to understand.
But before we could refactor this part of code, I think we have to live with this.