Make ROIBean abstract and clean FunctionBean