function sanitizeHooks(hooks, service) {
		if (isString(hooks)) return service && isFunction(service[hooks]) ? service[hooks] : null;

		if (Array.isArray(hooks)) {
			return _.compact(
				hooks.map(h => {
					if (isString(h)) return service && isFunction(service[h]) ? service[h] : null;

					return h;
				})
			);
		}

		return hooks;
	}
Sanitize hooks. If the hook is a string, convert it to Service method calling.

@param {Function|String|Array<any>} hooks
@param {Service?} service
@returns