build: Refactor autogen call into before_script This is a common action among all current stages, so there is no need to duplicate it.