Use decorator for build function registration.

It has the following benefits:
- prevents typos
- enables completion
- for the code to be ordered in topological order
- removes to logic

Change-Id: Ia3766d7459c172708a08e3921216e0406189efee
1 file changed