[api] remove one duplication in source controller