Deprecation inializer

I’m getting a bunch of deprecation warnings about using the initializer API:

DEPRECATION: lookup was called on a Registry. The initializer API no longer receives a container, and you should use an instanceInitializer to look up objects from the container.

There’s an example in the deprecation guide on how to fix this, but how would I fix the following?

export function initialize(container, application) {
    application.inject('controller', 'heyman', 'heyman:main');

export default {
    name: 'setup-heyman',

Here is a commit I did to support ember 1.13/ and ember 2.0 in a single addon