So, I could be wrong about this, but I'm pretty sure you could do self.complete_task(tid) in the :mark portion of your case statement. Same lines of code, but you wouldn't have to create an entirely new method to do it.