'Standardize and clean the fields within an MDN object.'

def standardize(self, mdn):

    if ('Global' in mdn.obj):
        mdn.obj = 'Global'
    if ((mdn.obj not in self.objects) and ('Global' in mdn.url)):
        return None
    if (mdn.prop.lower() not in self.inverted_index):
        return mdn
    for signature in self.inverted_index[mdn.prop.lower()]:
        if signature.startswith(mdn.obj):
            mdn.codesnippet = signature
            mdn.title = signature.split('(')[0].strip()
            break
    return mdn
