Crystal structure of ryanodine receptor SPRY2 domain from the diamondback moth provides insights for development of novel insecticides.