A Multitask Representation Using Reusable Local Policy Templates