refactor linkedin plugin