Move Plugin object out of IFFE to make it easier to test