Replace duplicate function by include