Compact code for issue category routes. Fix #294

Simple fix for avoiding the repetition of code on 4 places.