Remove registerApplication code