This function is defined twice (see https://github.com/jirikuncar/invenio/pull/155/files#1db12813b7d65bec37b72e920aa7938cR847)