Unify the way to specify resources requirements.