Factor out code for determining article type so that it can be shared with Rhino.