Refactor code to work with the Composer only approach in the latest tutorial.