I am quoting from The Memoirs of Sherlock Holmes, The Resident Patient by Arthur Conan Doyle:
"Mr Blessington came in from his walk shortly afterwards, but I did not say anything to him upon the subject, for, to tell the truth, I have got in the way of late of holding as little communication with him as possible".
I found a definition of "get in the way":
To obstruct or interfere with something.
but it doesn't seem to suit the meaning intended by the author.
Best Answer
The expression is to get in(to) the way of doing something. It is British English and it means
FreeDictionary also has an entry for the expression, pointing out that you can also get out of the way of doing something:
Here is another example from classic British literature:
ADDITION: Prompted by a helpful comment, I will add that indeed, the phrase get in(to) the habit of is more common nowadays:
The phrase is more common in BrE than in AmE, but it is definitely used on both sides of the Atlantic. The interesting thing, however, is that get into the habit of is preferred in BrE, while get in the habit of is preferred in AmE.