Code cleanup for LinkedIn oauth