Extracted the 'weight' property as a plugin.