It' similar here to the method in forum. We might want later to abstract it because most lines of those hook-helper methods are similar...