This could be solved with a helper of extension method.