<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch_current_cloudformation_template(service_name, environment, cf_client):
 """ Fetch the currently-deployed template for the given service in the given environment and return it. """

    stack_name = get_stack_name(environment, service_name)
    logger.debug('Fetching template for `%s`', stack_name)
    result = cf_client.get_template(StackName=stack_name)
    return jsonify(result['TemplateBody'])