Refactor bug submission code to handle asynchronous parameter fetching