Move size plugins to core library