This part is quite painful :( But it is lacking in doctrine/common.