Further specialize applyFunc hook, indent to match rest of codebase