Remove unneeded logic to compile the examples.

We use usage requirements to get all the examples to compile.

Change-Id: I9d9efcbe0e42cff89e151c6d96785d2d00ea8bd5