Refactor the build system to keep the information about a new target in a single class