extract updating dependency requirement to method