Renames decorated functions correctly