Optimize config of doctrine callback validator