Refactor src/ modules and build + packaging process