Move parameters's validation to parameters