Simplify the code use helper method.