Issue #178: Contextual Action Bar

Yes, that's a good idea, especially if this code is repeated elsewhere. Please make comments on other lines where you find this repetition.