We had talked about moving the Gradient functions into the file where they are used (organizationally keeping the gradients close to where they are used) - right @shivaram? We should probably do that and follow that convention with these gradients as well.