Move requires, optional, provides from utils to task

Change-Id: I06ed2c3cfdb1b07bd611cf4e7afb39e4bdaa40a5