Created by: grygielski
This PR cleans up base MKLDNN handler code in order to prepare it for templatization. It's the first step in series of PRs to do so.