Converting to globals

* This will add support for composer.

Change-Id: I2e9aff2a003a8e196bce6db548933ad7bd957d31
(cherry picked from commit 9d74ac237501f749c3262dcda310080e3402be97)