<code>data_discard</code> was used only once, what's the point to define this actions as function?