Restructuring application for publishing to dart pub