Vid 1582

It seems like the implementations are almost identical. Implementing the function here, can help avoid code duplication. Things like `__METHOD__` and controller name can be parameters to this function.