def METHOD_NAME(self, record, data, dumper=None):
    """Called before a record is dumped.
    :param record: invenio record - the original record.
    :param data: dict - the data.
    :param dumper: record dumper - dumper helper.
    """
    titles = data.get('title', [])
    bf_titles = list(filter(lambda t: t['type'] == 'bf:Title', titles))
    for title in bf_titles:
        title['_text'] = self.format_text(titles, with_subtitle=True)