Implements stock level handling in new catalog stock plugin