Move the definition of based target to module