Move application specific code away from lib part.