Do you have Refined Storage in your pack? If so, wouldn't a system like the one DW20 made for Living Wood and Living Rock work? Using Constructors to place and Destructors to collect, based on filtered in/out?
*edit after reading more carefully*
You found bonemeal to be best for fertilizer...