Minimize what gets rebuilt whenever a dependency of bts_api_generator or bts_genesis_to_cpp has a unrelated change