Unduplicate the code to get a list from the hooks